<?php
include_once('acs_settings.php');
$do_not_include_in_pages = array();

$include_in_pages = array('all');
if( do_we_load_module() ) {		
	if(is_object($main_smarty)){
		$main_smarty->plugins_dir[] = acs_plugins_path;
		$main_smarty->assign('settings', get_acs_settings());
		module_add_action_tpl('tpl_pligg_head_start', acs_tpl_path . 'acs.tpl');
		module_add_action_tpl('tpl_link_summary_pre_story_content', acs_tpl_path . 'begin_scrape_summary.tpl');
		module_add_action_tpl('tpl_header_admin_main_links', acs_tpl_path . 'admin_link.tpl');
		module_add_action_tpl('tpl_pligg_story_title_start', acs_tpl_path . 'favicons.tpl');
		module_add_action_tpl('tpl_pligg_module_upload_start', acs_tpl_path . 'player_inject_start.tpl');
        module_add_action_tpl('tpl_pligg_module_upload_end', acs_tpl_path . 'player_inject_end.tpl');
	}
}

$include_in_pages = array('module');
if( do_we_load_module() ) {		

	$moduleName = $_REQUEST['module'];

	if($moduleName == 'acs'){
		module_add_action('module_page', 'acs_showpage', '');
	
		include_once(mnmmodules . 'acs/acs_main.php');
	}
}

function get_acs_settings()
{
	return array(
		'acs_id' => get_misc_data('acs_id')
	);
}
?>